package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ee.chat.common.entity.HostPhotos;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2019-10-10
 */
public interface HostPhotosMapper extends BaseMapper<HostPhotos> {
    /**
     * 获取主播图片
     * @Author Shane
     * @Date 2019/11/12 20:57
     * @param
     * @return
     **/
    List<HostPhotos> selectByUserId(@Param("userId") Integer userId);

    /**
     * 删除主播相册
     * @Author Shane
     * @Date 2019/11/13 23:38
     * @param
     * @return
     */
    int deleteByUserId(@Param("userId") Integer userId);

    /**
     * 获取主播封面图片
     * @Author Shane
     * @Date 2019/12/25 14:50
     * @param
     * @return
     **/
    HostPhotos selectFirstByUserId(@Param("userId") Integer userId);
}